<template>
  <div class="list">
    <div class="good" v-for="(item,index) in tabs" :key=index>
        <div class="imgbox">
            <img :src="item.picUrl" alt="">
        </div>
        <div class="text">
            <div class="name">{{item.name}}</div>
            <div class="price">{{item.minPriceTip
            }}</div>
        </div>
        
    </div>
  </div>
</template>

<script>
export default {
    //父向子传值，父组件在子组件自定义属性，子组件通过props来接收
    props: {
        tabs: { type: Array, default:[] },
        currentIndex:{type:Number,default:0}
    }
    
}
</script>

<style lang="scss" scoped>
.list .good {
    display: flex;
    margin: 10px 0;
}

.list .good .imgbox {
    width: 80px;
    margin-right: 10px;
}

.list .good .imgbox img {
    width: 100%;
}
</style>